package com.yidong.mywheater;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class jump extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jump);
        //跳转至实时天气
        Button button = findViewById(R.id.RealWeather);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(jump.this, RealWeather.class);
                jump.this.startActivity(intent);
            }
        });
        //跳转至天气趋势
        Button button1 = findViewById(R.id.WeatherTrends);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(jump.this, WeatherTrends.class);
                jump.this.startActivity(intent);
            }
        });
        //跳转至城市气象
        Button button2 = findViewById(R.id.CityWeather);
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(jump.this, CityWeather.class);
                jump.this.startActivity(intent);
            }
        });
        //跳转设置
        Button button3 = findViewById(R.id.SetUp);
        button3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(jump.this, SetUp.class);
                jump.this.startActivity(intent);
            }
        });

    }
}